package com.gzhuxj201.mapper;

import com.gzhuxj201.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {

    @Select("select * from admin where username=#{username} and password=#{password}")
    Admin selectByUsernameAndPassword(String username, String password);

    @Select("select * from admin where username=#{username}")
    Admin selectByUsername(String username);

    int update(Admin updateAdmin);
}
